package com.letoken.platform.repo.app.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 作者
 * @since 2024-02-18
 */
@Getter
@Setter
@TableName("app_fund_v2_detail")
@ApiModel(value = "AppFundV2Detail对象", description = "")
public class AppFundV2Detail extends Model<AppFundV2Detail> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    private Integer userId;

    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty("奖励类型1.发行 2.释放 3.分红(团队)奖励(每天一次  拿下级所有释放金额总和的某个比例) 4.加权(全网释放总额的比例)  5.平级(v5等级特有  如果下级是v5 则拿下级团队奖励的20%)6.服务奖(下级发行 上级实时拿到) 7.社区奖励 8.社区奖励2 9.赠送发行 10.赠送流通 11.日榜 12.周榜")
    @TableField("type")
    private Integer type;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("after_amount")
    private BigDecimal afterAmount;

    @ApiModelProperty("奖励来源id(3.分红(团队)   5.直推奖  6.服务奖才产生数据")
    @TableField("source_user_id")
    private Integer sourceUserId;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
